package com.guigu.eduservice.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色权限关联表（实现角色与权限的多对多关系）
 * </p>
 *
 * @author janecraft
 * @since 2025-09-27
 */
@TableName("role_permission")
@Data
public class RolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关联记录唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联角色表role_id
     */
    private Long roleId;

    /**
     * 关联权限表permission_id
     */
    private Long permissionId;

    /**
     * 记录创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

}
